import requests        # 导入requests包
url = 'https://mip.58book.cc/book/20543.html'
headers = {
    "Referer": "hhttps://mip.58book.cc/book/20543.html",
    "User-Agent": "Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Mobile Safari/537.36"
}
strhtml = requests.get(url, headers=headers)        #G et方式获取网页数据
print(strhtml.text)